				<div id="post-<?php the_ID(); ?>" class="post">
					<h1 class="title"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?> </a></h1>
				
					<div class="entry">
						<div style="text-align: center;">
							<a href="<?php echo wp_get_attachment_url($post->ID); ?>">
								<?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?>
							</a>
						</div>
     				
						<?php if(!empty($post->post_excerpt)) { the_excerpt(); } ?>
					</div>
				</div><!-- end post-<?php the_ID(); ?> -->